Added the ability to catch and retry after a curl error.
Updated changelog