fixed a bug that stopping a process appserver cannot change the state of it to be NotStarted