Using PApplet/runSketch for start sketch.
Remove :exit-on-close option.