Curl errors to client, Fixes 53 old

This tests  all Bjorn's work.  Only modification was to close curl and make it null before exit.