@Override
public void windowClosing(WindowEvent e) {
if (e.getWindow().equals(View.getMainWindowView())) {
exit();
} else if (e.getWindow() instanceof DownloadDataView) {
DownloadDataView view = (DownloadDataView) e.getWindow();
view.removeWindowListener(this);
view.getDownload().removePropertyChangeListener(view);
downloadViews.remove(view);
}
}