Exit with 1 if some exception has been caught