Quits early if there's an error, as it should