prepare to support event 'close' of a request