If you're laid off or fired, and you owe money, you will be stopped at the border from leaving. It takes about a week for the notification from your employer to get into the financial system, which is why many westerners drive to the airport and leave their cars in the parking lot with the keys in them - never to return to Dubai.