Completed the error management for threads

The required exceptions for error reporting in threading classes were
implemented. The next step is to include those exception in the Thread
class.
Error management added to thread

THe new error managemente mechanism was added to The Thread class but...

  IT HAS NOT BEEN TEST-DRIVEN!

I need to continue but I promise to figure out how to try this kind of
things.
Implemented the exit function for threads