setListeningEnabled(false);
ThumbnailCache.getDefault().clearCache();
Platform.runLater(() -> {
historyManager.clear();
});
<BUG>Category.clearTagNames();
Toolbar.getDefault().reset();</BUG>
groupManager.clear();
if (db != null) {
db.closeDBCon();

setListeningEnabled(false);
ThumbnailCache.getDefault().clearCache();
Platform.runLater(() -> {
historyManager.clear();
});
Category.clearTagNames();
TagUtils.clearFollowUpTagName();
Toolbar.getDefault().reset();
groupManager.clear();
if (db != null) {
db.closeDBCon();
