added some delays after session.close() to a test that was intermittently failing.
Merge pull request #22 from garthpatil/master

Added delay after session.close() to a test