Expose disconnect, ensure tcp for logging when callback is passed