conditionally stop apache if possible for smoother upgrading