Improve session status (related to #234).