Make table creation synchronous

Considering that the game cannot be played without the page table, we
should create it synchronously, so this change does that.

Also fix a bug with cleaning up code on certain code branches.