Php API Insert EXIT time on page

I am using a complete Ajax website. Each page is loaded this way so the PHP API has been my mode of choice.

Not sure what command I should issue upon EXITing the website in order to keep the Exit rate accurate.