Bug 912645: ability to indicate notification modes

Better to do a waitFor(count === 0) here. In the 'close all notifications' code above, we don't wait for the close events before continuing. So we are introducing ourselves to a potential race condition if we don't do some kind of wait.