fix Application missing exit-code in doRunCommand
fix Application missing exit-code in doRunCommand

This uses the same logical flow as the parent class to ensure
proper compatibility and execution.

The TERMINATE event must be dispatched before the EXCEPTION event

pierredup/gush,webflo/gush,pierredup/gush,gushphp/gush,pierredup/gush,gushphp/gush,webflo/gush,gushphp/gush,webflo/gush,gushphp/gush,sstok/gush,sstok/gush,sstok/gush