When a purchase is made all way to the end, on the invoice

Hi

When a purchase is made all way to the end, on the invoice page on the bottom there's a link "Close Window", that when clicked it opens mydomain.com/whmcs/window.close, which doesn't exist, and a 404 page is open. How to avoid this?

Cheers