MDL-46133 tool_monitor: added event cleanup task
MDL-46133 tool_monitor: added unit tests