adding notify about session end

merge unused branch