try to handle task's error
add error handler