events - fix the crash if the obj event is deleted in callback calls.