Did you know ... Search Documentation:
PL_exit_hook()