java.io.IOException: BufferedInputStream is closed (fixed)