Close a socket.
Returns true if successful, otherwise false.
If a connection via SocketConnect was previously created for a socket, it is discontinued.
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError() returns the error 4014 – "Function is not allowed for call".