Debug set_result method and catch if unable to set the result in the calling method