Put errexit to a better place.