public boolean isClosed() {
      return closed;
    }
Check if the shell and callback thread have been closed.

@return {@code true} if the {@link Interactive} shell has been closed.
imitate/src/main/java/com/engineer/imitate/shell/Shell.java