Announcing your plan to leave the country is going to get you arrested and held without bail. Hire a real world criminal defense attorney now and hope the court will let you trade your passport for an ankle monitor.
Lastly, I didn't say he didn't have to get good representation. I totally would if I was in his shoes. Don't skimp on a good lawyer.