Fixed the closeButton/receipt crash bug.

You can now close and it will reset the receipt and not crash.