Emmitting error events