Close db on service destroy.