Made IOUtils.close(…) method log errors.