closeConnection method

void closeConnection()

Implementation

void closeConnection() {
  controlSocket.close();
  dataSocket?.close();
  dataListener?.close();
  logger.generalLog('Connection closed');
}