handle errors in RunInstances