diff --git a/camera-server/src/janus/janus-room.ts b/camera-server/src/janus/janus-room.ts
index 7012aa7857d55dad158c163645e06f0d13dde975..cb21b585c1caa9e8b9cf10887486919a6d20373d 100644
--- a/camera-server/src/janus/janus-room.ts
+++ b/camera-server/src/janus/janus-room.ts
@@ -66,7 +66,7 @@ class JanusRoom {
             }
         }
         console.log(
-            'Warning: Janus session will timeout because long poll got no response'
+            'Warning: Janus session will timeout because long poll got no response or got cancelled'
         );
         this._sessionAlive = false;
     }
diff --git a/camera-server/src/util/cleanup.ts b/camera-server/src/util/cleanup.ts
index f543780d1b38a443f43c9918e835c00a9d0d0e42..50adc0ecd0870bc7315bf7cfcac79b5d20eff67b 100644
--- a/camera-server/src/util/cleanup.ts
+++ b/camera-server/src/util/cleanup.ts
@@ -3,7 +3,7 @@ import { isBlocking } from '../io-interface/handlers/output-handlers';
 import { room } from '../janus/janus-room';
 
 const asyncExitHandler = async (reason: number | string | Error) => {
-    console.log('Async exit handler');
+    console.log(`Async exit handler with exit reason ${reason}`);
     try {
         await room.cleaup();
     } catch (err) {
@@ -13,8 +13,8 @@ const asyncExitHandler = async (reason: number | string | Error) => {
     process.exit(isNaN(+reason) ? 1 : +reason);
 };
 
-const syncExitHandler = () => {
-    console.log('Sync exit handler');
+const syncExitHandler = (code: number | string) => {
+    console.log(`Sync exit handler with code ${code}`);
     socketIO.emit('remove_all_feeds');
     if (isBlocking()) {
         console.log('Aborting process due to blocking file append');