'Disconnect from the remote SMB/CIFS server. The TCP connection will be closed at the earliest opportunity after this method returns.
:return: None'

def closeConnection(self):

    if (not self.instance):
        raise NotConnectedError('Not    connected    to    server')
    self.instance.transport.loseConnection()
