closing opened sessions