What happens if both the agent and the contracting person are unaware that the agency has been terminated at the time the contract is made? 
In such a scenario, the contract made by the agent will still have legal repercussions and be binding on the principal or their successors.