counter service generally closes 30 minutes prior to park closing.
sometimes they will take orders after that 30 minute time period.
if they still have food already placed on the warmers, they would prefer to sell it than toss it.
you can stay in the eatery and finish your meal/food.
they don't kick you out 30 minutes prior but stop taking new orders at that time.