Ouch! I take it was much more expensive than usual economy tickets.
What if you planned to buy a train ticket to leave? I don't know about HK but in China it's a mess since it can only be done a few weeks before the travel date and might not even have been possible to do prior to entering the country.