Handle failure case in "surge" script