Close DB on shutdown
Only remove non-existing releases only once