Implements cancellable for event-objects
Code cleanup