Added the retry for check file transfer as per sandip comments