diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py
index 81e6b716ddef1831b9e4e31ff81ee5f677c946db..5d601b549cdb886208a8f0f948b302b111b8b5d1 100644
--- a/modules/deeplearning/icing_cnn.py
+++ b/modules/deeplearning/icing_cnn.py
@@ -730,6 +730,8 @@ class IcingIntensityNN:
         self.test_labels = labels
         self.test_preds = preds
 
+        self.h5f_tst.close()
+
     def run(self, filename_trn, filename_tst):
         with tf.device('/device:GPU:'+str(self.gpu_device)):
             self.setup_pipeline(filename_trn, filename_tst)