add terminate and del function to hpy_automation scripts