What I had done first was to register a shutdown h...
# tornadofx
e
What I had done first was to register a shutdown hook that would close the session factory.