Don't try to pass None as the message from quit() to disconnect()