diff --git a/app/cocal_methods.py b/app/cocal_methods.py
index 95ec856b0046ee11e13b595b68ad1ef83dec1b64..2c5820ef387e238dbdecc31e1989719fd0544f99 100644
--- a/app/cocal_methods.py
+++ b/app/cocal_methods.py
@@ -152,6 +152,7 @@ class CocalMethods:
         # close the streams and files
         for stream in streams:
             stream.stop()
+            stream.close()
 
         for soundfile in soundfiles:
             soundfile.close()