Add shutdown_action_hook()