Clear references to application object. This fixes issue #23.
Must garbage-collect, too, because we've got cyclic references in the application object that are only resolved during a complete collection.
Merge pull request #24 from malthe/master

Clear reference to application on teardown (fixes issue #23)