added exitOnClose to our main window for android