Make sure killed child processes are dead before task is completed

Also, don't let phantomjs have access to the grunt.warn method