Unfortunately I don't use Mach3 as yet so you'll need to hang around until someone else wakes up.
I normally set up my safe Z clearance height in the cad/cam software before it gets to my controller.
What are you using to create the G code?