private extern void Cleanup(); [MethodImpl(MethodImplOptions.InternalCall), ThreadAndSerializationSafe]