a sketch of disconnect functionality
implemented disconnect to client
implemented disconnect to client
implemented disconnect for worker