Avoid trap cycles, only trap from start process.

Thanks to @groner for help in debugging & fixing.