Fixed issue with not releasing the spinlock in show tasks
Improved logging and diagnostics