Don't crash in C++ when calling uncompress.close() twice