Fixes to added Task priority and debug display
More tight shutdown finish- off-by-one meant one other thread might still be finishing up when we notify the platform that app is closed