Usually, if you send the output, this does not happen: if the web server detects a shutdown, the PHP process is also stoppend (which is why we have functions such as register_shutdown_functionto make sure that something is done (unelss you, of course, encounter with a fatal error)).
, HTTP , , - , - (. ignore_user_abort ( false, , )), kludge , HTML, flush. , (PHP, , ), - 100%, . , , , , - , .