Ensure Whole application exits cleanly when closing mainwin