Handle app deployment state transition
This shouldn't result in an exception:
Illegal attempt to transit from APPLICATION_REMOVED on DEPLOYMENT_FAILED.
This shouldn't result in an exception:
Illegal attempt to transit from APPLICATION_REMOVED on DEPLOYMENT_FAILED.