code: public static void interruptedException(String msg, InterruptedException e)
        throws IOException {
      Thread.currentThread().interrupt();
      LOG.error(msg, e);
      throw new IOException(msg, e);
    }
docs: Interrupt the thread and then log and re-throw an InterruptedException
  as an IOException.
  @param msg The message to log and include when re-throwing
  @param e The actual exception instances
  @throws IOException