Added missing implementation of removeAllEvents