So it turned out something with Avast was holding onto the page file. Setting a windows policy to clear the page file on shutdown fixed the problem.