Use instance.stop API.