I'd definitely recommend getting a room at a hotel near DXB. There are loads of them. If you book early enough, you can get the Le Meridien/Al Bustan for $100.
Dump the bags. Rest & shower if required, and then spend the evening in Dubai. A few drinks and a meal, and then back to hotel. Head to the airport around 2am.