Prevent worker from being terminated twice.