Closing a second window

That PWindow::exit() method is never called back.
Instead, move that exit() to the main sketch PApplet in order to avoid that “ThreadDeath”:

@Override void exit() {
  win.dispose();
  super.exit();
}
2 Likes