code: @Override
  	public void close() {
  		if(userSession == null) {
  			return;
  		}
  		
  		try {
  			final CloseReason closeReason = new CloseReason(CloseCodes.NORMAL_CLOSURE, "Socket closed");
  			userSession.close(closeReason);
  		} catch (Throwable e) {
  			logger.error("Got exception while closing socket", e);
  		}
  		
  		userSession = null;
  	}
docs: Close the connection