handle exception raised in workers