private void closeConnections() throws Exception {
    if (getConnections() == null) return;
    
    while (getConnections().size() > 0) {
      ISocketServerConnection ssc = (ISocketServerConnection)getConnections().get(0);
      ssc.disconnect();
      getConnections().remove(ssc);
    }
  }