Added `@on` to be able to monitor `error` events.