Set catch for invalid directory entered. Found inconsistency in versioning of gi.repository. Window.close() does not exist in earlier versions.  Compensated with main.quit(), performing full program exit on end of loop.