Quit IJ2 if app quit called within legacy mode