The execution lock is now released if an error is thrown in the thread.
Authored by: bugman 2011-06-29
Parent: [r13322]
Child: [r13324]