local server exit added to all places, where application is being shutdown by design