Added the listener for uncaughtexception