Check for null return value from getResponseValue to throw a more meaningful (than an NPE) exception.
Streamline stream closing a bit in FileUtil.