title: Processing and stop() method
body: <p>I want to perform some operations when quitting a Processing sketch. I found on forums that method stop() is called before the application quits.
  I tried it, but it seems to me it is never called.
  Here follows a minimal (not working) example:</p>
  
  <pre><code>void setup()
  {
   size(100, 100);
   println("start");
  }
  
  void draw()
  {
    //nothing here
  }
  
  void stop()
  {
    println("called stop()");
    super.stop();
  }
  </code></pre>
  
  <p>When quitting the application , through stop button on the IDE or
  through X button on App, I never see the message "called stop()".
  I tried both with and without super.stop(), nothing changes. 
  Thanks </p>
  
  <p>Processing 2.2.1, on Linux Debian Wheezy</p>