Implemented exit condition for manager app