close socket and fire onClose on feof while reading. Fire onConnectError...

... if fsockopen fails.