Added log to connection closing.