ENGPLANS-464: inline Closeables.closeQuietly as that is deprecated