Added error handling to upload saver

A further fix for #251