Fix #258: clean sessions by type