Exception handling for threads.
Timer for unit tests.