Handle uncaughtExceptions on conf/cli