logback-android/src/main/java/ch/qos/logback/core/util/CloseUtil.java
public static void closeQuietly(Socket socket) {
    if (socket == null) return;
    try {
      socket.close();
    }
    catch (IOException ex) {
      assert true;  // avoid an empty catch
    }
  }
public static void closeQuietly(Socket socket) {
    if (socket == null) return;
    try {
      socket.close();
    }
    catch (IOException ex) {
      assert true;  // avoid an empty catch
    }
  }
Closes a socket while suppressing any {@code IOException} that occurs.
@param socket the socket to close