Allow disabling of automatic exception handler (fixes #25)