When an app is deleted, set its expected state to stopped

[finishes #51002855]