Performance optimizations to handle cases of instrumentors that are not listened to. Also, fix a possible concurrency issue.