func (w *watcher) terminateInstance(p string) error {
	inst := w.instances[p]
	delete(w.instances, p)

	if inst != nil {
		if err := process.Delete(inst.uuid); err != nil {
			return errors.Wrap(err, "failed to process.Delete")
		}
	}

	return nil
}
// terminateInstance terminates the instance from the given port
terminateInstance terminates the instance from the given port
// terminateInstance terminates the instance from the given port
func (w *watcher) terminateInstance(p string) error {
	inst := w.instances[p]
	delete(w.instances, p)
	if inst != nil {
		if err := process.Delete(inst.uuid); err != nil {
			return errors.Wrap(err, "failed to process.Delete")
		}
	}
	return nil
}
func ( w * watcher ) terminateInstance ( p string ) error { inst := w . instances [ p ] delete ( w . instances , p ) if inst != nil { if err := process . Delete ( inst . uuid ) ; err != nil { return errors . Wrap ( err , " " ) } } return nil }
terminateInstance terminates the instance from the given port
terminateInstance terminates the instance from the given port