leak plugger, registry fixer

1) fix length check on componentInfo.instances 
2) delete matching events from global event store