Handle ResourceVanished errors when the remote end closes the connection first