add some client-side error handling for closing windows when the
sesssion has disconnected