added support for manually closed browser sessions