Try and convey meaningful error messages.
Finish adding support for open and close of Session objects, create a
small test case.