Logging improvements.
Fixed chat.
Fixed bug with reconnect.