Garbage collecting task

Garbage collecting is removing descriptors or events.