Turned uncaught exception into a handled error