policy: Add another hook for controlling the application state change