Add exclude iml files
Error trace should be terminated when reach 10 times loop.

In our production enviorment, we often faced a lot's of errors.
the trace loop will eats lot's of memory. so we need to
decrease it to lower than 10 times.
hope that will enough for daily using.