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.
I'm ok with this change, but I'd like to see a test for the new behavior. There should be corresponding tests for fetch that can light the way.