Release pack windows before reporting out of memory.