multithreading and xustomexception