Fixed socket logging issue on reconnection.