handle exception in executor service tasks