The AGI applications now set an AGISTATUS variable which will allow you to find out whether running the AGI was successful or not.
there was no way to handle the case where asterisk was unable to locally execute an agi script for some reason.