[TASKKILL] Merge our updated terminate_processes() function with the one