Replay error handling

Make it possible for the event listeners to decide themselves how to handle errors. Needed for logging, cleaning up etc.