Add calls to UPCR_EXIT_FUNCTION.  Fixes #63.