Wrong operation

Hello doing performance tests I have disconnected the router to see how it behaved when collecting.

The page loads correctly. It shows temperature and other widgets but all the switches that have mqtt related have stopped responding.

These are the errors it shows. If you are more used to this, you may be able to realize what the conflict is.

If I restart the Raspberry everything is corrected.

Thanks

2017-11-09 15:18:27 WARNING (Thread-11) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-11-09 15:18:44 ERROR (Thread-10) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-11-09 15:18:44 ERROR (Thread-9) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-11-09 15:18:45 ERROR (Thread-12) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-11-09 15:18:45 ERROR (Thread-11) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
2017-11-09 15:24:13 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.read callback)
OSError: [Errno 113] Host is unreachable
2017-11-09 15:25:45 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal error on transport TCPTransport (error status in uv_stream_t.read callback)
OSError: [Errno 113] Host is unreachable

Thinking well. It seems that what it shows me is the cache.
What seems to be happening is that when the connection is cut, it does not reestablish itself.
It may be some configuration issue of the SD memory.
By SSH I can access normally.
Thank