Created class "WriteFunctionClient" for automatically managing cURL handle object and cleaning it up afterwards