already exists in gravia IOUtils.safeClose(...)