Bug fix: abort upload if one file fails.
Previously the ftp upload would try three times for each file, which
produces a lot of error messages if your network is down and you've a
lot of plots and templates. Now it gives up if any file fails after
three attempts.