Added log message for when the session is closed.
Changed connection log level to DEBUG.