Remove some findbugs warnings about missing close of streams, use existing IOUtils.copy() to copy from one stream to another