From my point of view, there are two. First, leave the country like what Tunisian ex-President Ben Ali did. Once he stepped down and left the country, the political unrest stopped and they are now looking forward to a new government.
Or, if he does not want to step down, make sure that the protest does not happen from the start. While the top military chief already declared that they "will not use force against protesters calling for the removal of President Hosni Mubarak ahead of a 'million people' march", but I guess it is already too late now. They should have used force from the start, preventing the protest from even happening. Like what Malaysian police usually do, even to a candlelight vigil protest. No protest, no problem.
I love Malaysia.