Close the Extensions object when ending the session.