Work on shutdown protocol.