If a fatal error is encountered during execution of a PLplot routine
then plexit
is called. This routine prints an error message,
does resource recovery, and then exits. The user may specify an error
handler via plsexit
that gets called before anything else is
done, allowing either the user to abort the error termination, or
clean up user-specific data structures before exit.