Fix shutdown in HOT modes.

HA in HOT modes calls back into the ManagementContext, but it's flagged !running at this point so stopping fails. The solution is to mark it !running after HA stops.