Added closed db call and assert.