Added missing DB closing