It is my understanding that the browser's download functionality cancels the download, not PHP. It is my understanding that the browser has simply requested a particular file from the server.
The server just sends data to the browser. PHP isn't involved, as I understand it. Perhaps you know better. I'm not certain that the server even has any precise way of knowing whether the data has been received complete by the browser.
If you know of some PHP function that says whether a browser completed a download, please inform me. I have never heard of this.
On the other hand, if you know such a PHP function is available, wouldn't using that function answer your question?