cancel job after finished