Fix support for HHVM

Fixes #93.
Can you explain the removal here?  My group is using non-blocking mode, and the flow here doesn't really look like there should ever have been a double-close.  However, this looks like it will keep curl open a bit longer than necessary.