Added uncaughtexceptionhandler