Close file after getting md5 sum from digest.