Better error reporting
#477: groundwork for private threads