Close filewriter on exception
Close streams on exception
Close FileInputStream on exception
Close stream on exception
Close stream on exception
Close stream on exception
Close stream on exception
Close stream on exception
JDKInstaller: close stream on exception
Close streams on exception
Close stream

The stream was not properly closed.
In addition, when the abort would fail, the exception caused by the abort
would be propagated up the stack instead of the original exception.
This patch makes sure to close the stream and let the original exception
propagate.
Close stream
Close stream
Close stream
Test: avoid NPE when zipFile could not be created
Massaging the fix by stevenpost

- coding style was not matching the rest of Jenkins
- IOUtils.closeQuietly is a lot more concise way of achieving the same
  thing.
- AtomicFileWriter.abort() does close, so no need to close it one more
  time.
Merge pull request #737

Conflicts:
	core/src/main/java/hudson/model/UpdateCenter.java