Fixed typo, fixed use of ApplicationStopping and ApplicationStopped
Fixed typo, fixed use of ApplicationStopping and ApplicationStopped

Moved waiting to OnApplicationStopped, so other code could use OnApplicationStopping signal

avtc/GracefullShutdown