diff --git a/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java b/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java
index 253726658c14515b3b245ddbdbbfdcbfbef8a89a..03230353b2cb16b8ccf281813a88f4fb973ed621 100644
--- a/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java
+++ b/screening/sourceTest/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreeningTest.java
@@ -347,6 +347,7 @@ public class DssServiceRpcScreeningTest extends AssertJUnit
         BufferedImage image2 = extractNextImage(imagesWriter);
         assertEquals(1, image2.getWidth());
         assertEquals(1, image2.getHeight());
+        images.close();
 
         assertTrue(testMethodInterceptor.methodInvoked);
         context.assertIsSatisfied();