diff --git a/src/app/authorisation.service.ts b/src/app/authorisation.service.ts
index 3905ed947f3dd251970673bd58f206efc865ab47..18a7ded1af106dd82bf60dd42ab1423f05776ca6 100644
--- a/src/app/authorisation.service.ts
+++ b/src/app/authorisation.service.ts
@@ -155,6 +155,7 @@ public logout() {
   }
   let sessionToken = this.sessionToken$.value;
   sessionStorage.removeItem('keys');
+  this.availableKeys$.next([]);
   return this.killAgent(apiserver, sessionToken).pipe(
     tap((v)=>window.localStorage.removeItem('strudel2_session')),
     switchMap((v) => this.getSessionToken(apiserver))
@@ -305,12 +306,7 @@ private getSessionToken(apiserver: APIServer): Observable<any> {
     'Authorization': `Bearer ${sessionToken}`
   });
   let options = { headers: headers, withCredentials: true};
-
    return this.http.delete<any>(apiserver.tes+'/sshagent',options)
-     .pipe(
-       catchError(this.handleError(anyvar)),
-       switchMap((v) => this.updateAgentContents(apiserver, sessionToken)),
-       catchError((e) => { return of([])}))
  }