Added func to stop an instance by filter.