Exception thread implementation