FTP error handling added