Guarding against bad traces.