abstract_th: Fix exception raising

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>