[feature] handle error for handler