Fix crach app when ftp disconnect