Will be called from the ModbusClientImpl
ModbusClientImpl
@override Future<void> close() async { await _socket?.close(); _socket?.destroy(); }