Fixed tail call loop
Fixed regression
Implemented termination
Add signal block during thread termination phase