smurf: Guard against previous error causing a segfault