close window & still crash on uncaughtException