close curl handle (cookies written on close)