void endCallback() {
      synchronized (callbackSync) {
        callbacks--;
        if (callbacks == 0) {
          callbackSync.notifyAll();
        }
      }
    }
Decrease callback counter, signals callback complete state when dropped to 0
imitate/src/main/java/com/engineer/imitate/shell/Shell.java