Fix the event listener so it doesn't exit if job is not found.