trigger_rec_cleanup_hooks() on exit