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