At https://github.com/mobile-shell/mosh/blob/master/src/network/network.cc#L605 there is fatal_assert() even when the error is ignorable (e.g. EIO, see https://man7.org/linux/man-pages/man2/close.2.html )
We should check errono and if the error is ignorable (e.g. I/O failed) mosh shouldn't abort. (We should also log the errono).
I am encountering this assert just 2 minutes after disconnecting from the network.