handle terminated state
Merge branch 'master' of https://github.com/apimash/StarterKits