remove events after they are finished