delay db close