put try catch around thread join to try and avoid crashing the client
Merge pull request #822 from lodle/exceptiondebug

put try catch around thread join to try and avoid crashing the client