fire app shutdown event.