Terminating failed instances