Made main window hide on instace exit
Made main window hide on instace exit
Enough main window hiding magic for now