detecting exiting failures