is there a way to break out of a sleep() before it wakes up so that if something unrelated happens and we no longer want to run the code after sleep we can abort? I've been using a global var and checking that before continue with the code after sleep and I guess thats probably simpler than tring to identify which sleep call to abort!