worker deregistration and graceful shutdown
tests for complicated deregistration