Kill child processes on SIGINT/SIGTERM

This ensures child processes are killed on SIGINT/SIGTERM. Could not run unit tests as they are failing even before these changes on my computer, however this patch worked for the example project I have.