get off halfway (no plane can stay aloft that long), find an airport hotel, have a bath, even a beauty treatment if they're available. Meanwhile I trust you will be doing your best to do the same?
if it is to Oz then you would be stopping over in either Bali or Singapore ot somewhere like that, you get the chance to freshen up whilst they top up the fuel. I think it is an overnight stay on some airlines.