http://www.cplusplus.com/reference/exception/set_terminate/
The function shall terminate execution of the program without returning to the caller.
Notice that if f is a function that does not implement the proper functionality it causes undefined behavior.