Openmrs page error upgrading to 2.4.0.

Is there somewhere there is a sequence of stopping modules one by one without getting error? Because usually when I start stopping modules before I can stop all them I get error and I can get to modules page.