handle threaded exceptions
exception handling is improved