void writeStarted() {
        writeStarted = System.currentTimeMillis();
    }
Normal connection close will attempt to write the stream end tag. Otherwise this method
forces the connection closed immediately. This method will be called when  we need to close the socket, discard
the connection and its session.
xmppserver/src/main/java/org/jivesoftware/openfire/net/SocketConnection.java