You will have transportation back no matter how long it is after the park closes. About an hour after the park closes they will start groupig resorts together into fewer busses. Eventually there will be 1 bus for all guests, that will stop at each resort. So just be prepared that the longer you dine, the longer the rider might be back, since it's stopping at each resort. But dno't worry, you won't be left there!