Guard against a hard crash if a write is processed at the same time as a disconnect