close method
Close the LDAP connection.
Returns a Future that is called when the connection is closed
Implementation
Future<void> close() async {
loggerConnection.finer('Closing connection');
if (!_canClose()) {
loggerConnection.warning('Trying to close connection that is pending!');
}
_socket.destroy();
_isClosed = true;
}