When the worker receives the "shutdown" state it'll cleanly shut down, and eventually go to "offline" state.