make sure not to call openSession more than once
Merge pull request #120 from dwrensha/open-session-once

make sure not to call openSession more than once