When running the Worker with the `-flush` CLI argument, actually sign off from the Manager before shutting down.
Move the 'shutdown' state code to the 'offline' state, to match the removal of the 'shutdown' state from the OpenAPI definition.