move shutdown and finished vars to finally block
Merge branch 'master' of https://github.com/dkilcy/project93014A.git