Added quit application flag to shared manager.