Tests for stat exception thrown when connection is closed.
Create a specialized session object used soley by the connection to
provide a place for things like durable unsubscribe, etc.
Do some cleanup and renaming to make things more consistent.