turns out that getCore() increases a refcount that needs to be matched
by close().  Who knew?