Add generic interruptible wait method
Add generic interruptible wait method

dongyuzheng/packer-builder-xenserver,xenserverarmy/packer,makunterry/packer-builder-xenserver,rdobson/packer-builder-xenserver,dongyuzheng/packer-builder-xenserver,june07/packer-builder-xenserver,makunterry/packer-builder-xenserver,xenserverarmy/packer,simonfuhrer/packer-builder-xenserver-1,rdobson/packer-builder-xenserver,fr34k8/packer-builder-xenserver,june07/packer-builder-xenserver,fr34k8/packer-builder-xenserver,conceptboard/packer,conceptboard/packer,simonfuhrer/packer-builder-xenserver-1