fixed a problem with the smb client code spinning when the connection