session: update comms of sessions of ref Comm
session: add Close method to Comm
session: auto close ref Comm
session: tests refactoring