Catch errors to allow continuous uploads