During the implementation of SERVER-59164 we've noticed that we are hitting certain invariants when errors like StaleConfig errors were thrown. This led to a suspicion that we might hit the same invariant if a concurrent operations kills the write operation (throw killOp or killSessions).