adding error handling to thread dump