I\'d like to write an express middleware function that sets up a listener on the response\'s \'end\' event, if one exists. The purpose is to do cleanup based on the http respon