ensured windows are closed upon gui destructor
ensured password generator and key dialog is destroyed when main gui window is closed