Master kill switch for journalling, useful when closing program.

As was discovered in issue #1267, it can be tricky to have a clean exit with journalling turned on, because the objects are pretty intertwined. This solution would turn journalling off at a point where it won't be needed anymore, just before all windows are destroyed.