fix kill job issue when restarting schedular