If a site knows that operations are done for this session, .done() coupled with "close on last client" could save resources with an auto-spawned, extension based app access.
Also make sure that future calls re-open the communication port if it gets closed for whatever reasons (like sleep)