Handling hardware exceptions under C++

You cannot use try, throw, and catch to handle hardware exceptions.

If a hardware exception resulting in abnormal termination occurs in a z/OS® XL C++ program, destructors for static and automatic objects are not run. If a hardware exception occurs, and a handler was registered for the exception using signal(), the behavior of destructors for automatic objects is undefined.