Fixed and enhanced signals handling when running with 'TERM_CHILD=1'
option.