worker uses new _deregister_worker lua command to remove itself on termination.