close stream when reading bytes from classpath