sendgrid/sendgrid-php — pull request #50 by sb8244 (2013-10-30 23:11:18+00:00)
Title: Fix issue with curl not properly returning when an error occurs

Issue https://github.com/sendgrid/sendgrid-php/issues/48

Must grab the error before closing curl, then return it after closing curl if applicable.