allow handle_result to change the result and exc_info