code: void closeHandle(HelloWorldConnection handle)
     {
        connections.remove((HelloWorldConnectionImpl)handle);
  
        ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
        event.setConnectionHandle(handle);
  
        for (ConnectionEventListener cel : listeners)
        {
           cel.connectionClosed(event);
        }
     }
docs: Close handle
  @param handle The handle