Eliminate closeQuietly deprecation warning