internal void Close() { transporter.Close(); if (heartBeatService != null) { heartBeatService.Stop(); } this.state = enProtocolState.closed; }