detect failed calls and abort