This allows users of the API to format a command without the need to
have all the sds functions included, only for free'ing the returned
wire-level command.
This calls the disconnect callback, causing the registered event
handlers to be cleared. After this, the error callback will be called,
knowing that events will no longer be fired.