add missing clear_file_list call, also move the clear_pid_call from thor_cleanup to prochidder_cleanup