trap uncaughtException, log as fatal and exit

fixes #20