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