Welcome to FT!
One thing to consider is where you'll be flying to and maybe forcing your body into that time zone during your Dubai stay. That would dictate when you sleep during the 27th. Personally, I'd get a beach hotel and snooze by the sea for a while, have a late dinner, and get to the airport for about 1am. If you have Priority Pass through your credit card, you could use their lounges in Terminals 1, 2, or 3, but I wouldn't pay for them.