pull curl handle setopts out of run.