Better handling of interrupts and exceptions in Group#wait.