Fixed closePage.

Fixed missing options.

Added a lot more testing to make sure things work.