Unclosed input stream blocks file for the end JVM work