- Improve logic of logout, add interrupt, if session is in running state - Add tests for new behaviour