Tweak tasks docs and fix exception handling code