Return non-zero code when an error was raised.