removed Event::shutdown; split app and framework shutdown events. Fixes #1507