Refactor the way to terminate the report thread to avoid Interrupted
exception thrown from Warp.