Check if Database.configurations is null in destroy()