Secret: If the kitchen's about to close, it's better to walk away.
Never sit down to eat at a restaurant an hour before it closes. You are more likely to get a compromised meal because the ingredients were prepped hours before – giving bacteria plenty of time to grow. The kitchen may also be a mess as the staff is in clean-up mode – meaning your dish may have an extra dash of cleaning spray on it.
Solution: Turn around and head to a restaurant with extended hours. The staff will probably be happier to serve you there since they aren't trying to rush you out the door.