public void Destroy() { try { TcpClient?.Client?.Close(); TcpClient = null; RestartableStream?.Close(); RestartableStream = null; Stream?.Close(); Stream = null; Buffer = null; } catch { } }