Fix handle events
Add in extra debugging
fix up manager task number tracking