Server invokes a callback on close.  Throws exception when closed while stopped.

+ Also, upgraded to IDEA 12.1 which upgraded the project files.
Merge branch 'master' into integration

* master:
  Server invokes a callback on close.  Throws exception when closed while stopped.