FIX: on HHVM, stream_socket_client returns $errno of NULL on success.
FIX: stream_socket_client can return FALSE which indicates an error (see php.net/stream_socket_client).