Previously all of the shutdown tasks were running concurrently, which meant the db could be closed before the webserver is finished using it.
Previously all of the shutdown tasks were running concurrently, which meant the db could be closed before the webserver is finished using it.