added reconnection during ftp transfering