Handle cancelations for winRM executor
In the winrm executor is doing a lot of checks like the port, and service availability which is good. We are not handling the case if there is any cancellation from the top part of the stack, for example, service killed or something else which just leads to slower shutdown/cancellation of builds.
Use the context that is already passed to handle cancelation, so as soon as the context is cancelled we stop check/executing script accordingly. We need to make sure that the context passed to Executor is the correct chain not to have a loose context where it can never be canceled.