Kill all child processes before killing the main process

This fixes the issue where there were processes running in the background
after successfully killing the main process. This was the issue with "go run"
which were getting killed, but the go process itself was still running.