input stream is closed in call to copyFile(etc), which performs a finally StreamUtils.safeClose(in);