Add tests for FluentLogger/RawSocketSender#isConnected and improve the detection of network failure