Properly kill PhantomJS when all is done

Plus added functionality to kill all tests if something fails