hub
hub copied to clipboard
Install shutdown hook and catch SIGTERM
Should also make sure that all database changes are written to disk.
Do we need to keep track of open DB handles?