smurf: Prevent seg fault if an error has already occurred