handle quit command and don't schedule reconnects.
support for commands without callbacks