Demonstrate how to use exception handling with Thread.