Ignore PHP warnings for fsockopen

Because we already check if the socket isn't false, you should ignore PHP warnings. In the CGI/FPM PHP errors aren't displayed. In CLI mode it isn't.
Close the socket if the class destructs

Close the socket if the class destructs and the private _socket property contains a resource.
Merge pull request #14 from piwi91/master

Ignore PHP warnings for fsockopen