Testing for MAXIMIZED window at start of process. Cleanup checking for handler