Added logging of the reason for the connection when it's closed.
Warning for connection closed should only be issued on error
Merge pull request #44 from rryk/log_close_reason

Log close reason