Add option to be notified when a collected promise is messaged

Useful to know when the `max` is too small, instead of things
silently failing.
Add spec for onmessagelost