support close action with http-stream