public override void Dispose() { MmalLog.Logger.LogDebug("Disposing connection."); OutputPort?.CloseConnection(); InputPort?.CloseConnection(); Destroy(); base.Dispose(); }