scripts: build.sh exits without being killed by SIGTERM
Merge pull request #469 from kirikaza/fix_final_sigterm

scripts: build.sh exits without being killed by SIGTERM