title: EASession, EAAccessoryDelegate and "ERROR - opening session failed"
body: <p>I am working with External Accessory framework. I am encountering problems reestablishing EASession <strong>after</strong> app goes into background and then returns to foreground. If I terminate my app and relaunch, then Bluetooth connection is reestablished as one would expect. I suspect that there is some part of the teardown that I am missing - or which is not exposed (??).</p>
  
  <p>[EAAccessoryManager sharedAccessoryManager] connectedAccessories]] is returning my connected accessory, and I am able to query it to get name, modelNumber, etc. However, the following line sets _session to nil.</p>
  
  <pre><code>_session = [[EASession alloc] initWithAccessory:_accessory forProtocol:_protocolString];
  </code></pre>
  
  <p>Is there any way to diagnosis the reason for failed EASession initialization?</p>
  
  <p>Is there some mantra for clearing out old EASession? </p>
  
  <p>This question is related to <a href="https://stackoverflow.com/questions/4326194/eaaccessory-easession-teardown-during-background">this</a> one - but I am not asking for advice on which path to follow. I am asking why this path has this large pitfall and how to navigate around it.</p>