handle errors in instance recovery