diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts
index dceedfbf6cc8f47663cc196ad4ea7bf1f6795839..928fda46e639c252917d2e3f619cb40cb172cf7b 100644
--- a/src/app/authorisation.service.ts
+++ b/src/app/authorisation.service.ts
@@ -245,10 +245,12 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
    //this.agentContents.next([]);
    if (error.status == 0) {
      this.notifications.notify("A network error occured. Are you connected to the internet?")
+     return;
    }
    if (error.stats == 401) {
     this.sessionToken$.next(null);
     console.log('session expired, why hasnt it refreshed automatically?')
+    return;
    }
    this.notifications.notify("Error querying ssh agent");
  }
@@ -354,7 +356,8 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
         return this.getCert(token, key, apiserver).pipe(
           map((cert) => [key,cert, token]))
         }),
-      tap(([key, cert, token]) => this.logout_sshauthz(token.sshauthzservice))
+      tap((v) => console.log('in keycert$ pipe line', v))
+      //tap(([key, cert, token]) => this.logout_sshauthz(token.sshauthzservice))
      )