Improve error checking before export actually triggers the FTP upload.