Adding logic to close dbcontext when done