def _terminate_instance(self):
try:<EOL><INDENT>self.resource.resource_groups.delete(self.running_instance_id)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise AzureCloudException(<EOL>'<STR_LIT>'.format(error)<EOL>)<EOL><DEDENT>
Terminate the resource group and instance.