Guard against $? being nil.