add two example of thread join and exception handling