Make stderr messages more generic

Emit an event on each message received