Disconnect client on shutdown.