fixed application framework shutdown