[PFM 2013/03/09] create and close basex sessions.