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 errors are displayed.

Close the socket if the class destructs and the private _socket property contains a resource.