catch exception on set thread prio