disconnect before calculating file md5