TST: close the session handler at test end