core.loader: actually kill the process when using kill_on_pause