Fix SIGTERM issue

Child processes exit now correctly on SIGTERM