private void Dispose() {
try {
if(_port!=null && _port.IsOpen) {
_port.Close();
}
}
catch(Exception) {
}
_port=null;
_gates.Remove(this);
}
#endregion instance