Fixed changing session status

Sessions can now be opened and closed easily