make sure the services are stopped before starting