Fix changing chat status to away when closing browser (Issue #3)