Not all files are uploaded :(

I have a rule setup to optimise images, then move them to another folder, then upload them via ftp, then visit a web url that clears the cache for that image (for a website). Usually I'm exporting a handful of images via Lightroom into the watched folder. The problem is that not all images are fully processed. If I export 10 images, 7 might work and 3 don't get to the upload and script stage, they are just optimised and moved.
Is there another way of achieving this that's reliable?
Is there another way of achieving this that's reliable?