base1: If logout message can't be sent, reload the page
base1: If logout message can't be sent, reload the page

Otherwise the page never refreshes because websocket is
already closed and so the close handler never fires to
reload the page.

Closes #7415
Reviewed-by: Stef Walter <8a7fbf0f15d3ad982af54ef28f5c117d2494b76c@redhat.com>

Scribery/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,petervo/cockpit,cockpit-project/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,andreasn/cockpit,moraleslazaro/cockpit,xhad/cockpit,larskarlitski/cockpit,xhad/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,larsu/cockpit,xhad/cockpit,petervo/cockpit,harishanand95/cockpit,deryni/cockpit,mvollmer/cockpit,larskarlitski/cockpit,cockpituous/cockpit,andreasn/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,mareklibra/cockpit,cockpituous/cockpit,larsu/cockpit,petervo/cockpit,garrett/cockpit,SotolitoLabs/cockpit,deryni/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,xhad/cockpit,petervo/cockpit,moraleslazaro/cockpit,andreasn/cockpit,Scribery/cockpit,andreasn/cockpit,harishanand95/cockpit,larsu/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,cockpit-project/cockpit,Scribery/cockpit,andreasn/cockpit,deryni/cockpit,Scribery/cockpit,mareklibra/cockpit,xhad/cockpit,deryni/cockpit,deryni/cockpit,martinpitt/cockpit,xhad/cockpit,garrett/cockpit,michalskrivanek/cockpit,martinpitt/cockpit,stefwalter/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,petervo/cockpit,deryni/cockpit,martinpitt/cockpit,larskarlitski/cockpit,mareklibra/cockpit,mvollmer/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,stefwalter/cockpit,stefwalter/cockpit,larsu/cockpit,SotolitoLabs/cockpit,garrett/cockpit,Scribery/cockpit,garrett/cockpit,mvollmer/cockpit,harishanand95/cockpit,harishanand95/cockpit,cockpituous/cockpit,deryni/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,mvollmer/cockpit,xhad/cockpit,larsu/cockpit,mareklibra/cockpit,cockpituous/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,andreasn/cockpit,andreasn/cockpit,larskarlitski/cockpit,cockpit-project/cockpit,harishanand95/cockpit,petervo/cockpit,cockpituous/cockpit,stefwalter/cockpit,cockpituous/cockpit,garrett/cockpit,stefwalter/cockpit,mareklibra/cockpit,larsu/cockpit,petervo/cockpit