Fix Utils.showMessageDialog crash bug if app was destroyed