public void close(){
  stopTimers();
  closed=true;
  window.dispose();
  if (listener != null) {
    listener.notificationRemoved(this);
  }
  if (activityListener != null) {
    ActivityTracker.removeActivityListener(activityListener);
  }
}

public void close ( ) { stopTimers ( ) ; closed = true ; window . dispose ( ) ; if ( listener != null ) { listener . notificationRemoved ( this ) ; } if ( activityListener != null ) { ActivityTracker . removeActivityListener ( activityListener ) ; } }
close the window immediately and cleanup .
