closeQuietly shouldn't require a not null check