If checkGoqueType fails within OpenPrefixQueue, there is no way to close the already-constructed object. On Windows, the file lock held will prevent deletion of the path.
Other types (queue, stack, priority queue) return an object, so prefix queue should, as well.