public static void closeQuietly(Socket sock) {
        if (sock != null) {
            try {
                sock.close();
            } catch (IOException ioe) {
                // ignored
            }
        }
    }
Unconditionally close a <code>Socket</code>.
<p>
Equivalent to {@link Socket#close()}, except any exceptions will be ignored.
This is typically used in finally blocks.
<p>
Example code:
<pre>
  Socket socket = null;
  try {
      socket = new Socket("http://www.foo.com/", 80);
      // process socket
      socket.close();
  } catch (Exception e) {
      // error handling
  } finally {
      IOUtils.closeQuietly(socket);
  }
</pre>

@param sock the Socket to close, may be null or already closed
@since 2.0
pay-java-common/src/main/java/com/egzosn/pay/common/util/IOUtils.java