Remove instances on shutdown before removing services required to remove instances.