Fix script continuing after failed deploy