Disconnected from the database explicitly in the shutdown function