close method
Close the connection
This method will never throw
Implementation
Future close() async {
if (_sentClose) {
return;
}
_sentClose = true;
try {
await _conn.processHandlerNoResponse(QuitHandler(), _timeout);
} catch (e, st) {
_log.warning('Error sending quit on connection', e, st);
}
_conn.close();
}