disconnect

This shuts down all handlers and socket.
If tearDown is true then it will forcefully shutdown all connections and try
to return as soon as possible. Otherwise it will behave the same as
void disconnect( String name );