This is probably more useful for development rather than production, but debugging Flash is painful. In particular, if an exception is thrown and not caught, the Aphlict client/master will die... and there will be no stack trace anywhere (at least, not that I have been able to find).
We //should// be able to do this with [[http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html#marshallExceptions | ExternalInterface.mashallExceptions]], but I have not been able to get this working thus far.