mkipp_interactionlab-touch/TargetAcquisition/BubbleCursorDemo/DisposeHandler.pde
public class DisposeHandler {
  
  DisposeHandler(PApplet pa, DataPrinter dataPrinter) {
    pa.registerMethod("dispose", this);
  }
  
  public void dispose() {
    println("Closing sketch");
    dataPrinter.saveData();
  }
}
