handle events error