$r->register_cleanup) or on server shutdowns/restarts (via
Apache->server->register_cleanup). However, in
HTTP/1.1several requests can be lumped into a single connection. What if you wanted to do cleanup processing on a per-connection basis?
$r->connection->register_cleanupmethod which allows you to do per-connection cleanups. alphaware, for sure, but cool in concept.