API: PHP wrapper changes.
Close the curl request appropriately.