Buffer stdout events when disconnected. Fix bug where sometimes we sent extra stuff after auth but before room_info.