Fix a goroutine leak.
Monitor task progress by websocket.