fix dbcontext not closed