also close the curl session