Gnuplotter fix: all related windows are closed before closing the main window.