fix thread exceptions passing.