Have added detection for disconnected servers and resending not received data.