Passing provider to lookupAdapter in session#close, and passing options to adapter

This fixes session#close so that custom adapters will no longer cause a "not implemented" exception.
Ahh, genius! Thanks.  That worked, but now it's calling 'close' on the application adapter, which just raises this exception:

'The Torii adapter must implement `close` for a session to be closed'