Implement application shutdown messages.