cleans up execute_job