InterruptableWait(stopChan)

Adds a wait method that can be interrupted by a stop channel