Refactored errors handling into events.