Implemented Cancelling for Windows.