quit elegantly when met uncaughtException