cleaned up variable names to make them pep-8 compliant.
removed headless option because the client requires at least one window open at any time for the pyqt application to run.
added a logging stanza to differentiate the final main-window close event type.