try after_success and after_failure