Add end handler for web request