Remove closing input streams from StreamUtils.
Close them in NetJavaImpl.