There isn't needed a simple.disconnect("\\\\#{ip}\\#{@smbshare}") as in download_ntds? just asking :)