replay the events and able to stop http server