Close the timed stream.
void close();
This cancels all of the outstanding asynchronous operations as if by calling cancel, and closes the underlying socket.
cancel