Hello, Please review the fix for the issue: https://bugs.openjdk.java.net/browse/JDK-8027992 The fix is available at: http://cr.openjdk.java.net/~pchelko/8027992/webrev/ A simple fix, try-with-resources blocks added when needed. Thank you. With best regards. Petr.