diff --git a/app/cocal_methods.py b/app/cocal_methods.py
index 9e93f0593ffe0aa8df43d0d90959ea762dfd7dd6..c070675b98ff10a9098af33a7ef286c4fef7beb4 100644
--- a/app/cocal_methods.py
+++ b/app/cocal_methods.py
@@ -151,6 +151,7 @@ class CocalMethods:
         # close the streams and files
         for stream in streams:
             stream.stop()
+            stream.close()
 
         for soundfile in soundfiles:
             soundfile.close()