whendone - add option for when to give up waiting