PhantomJS stopping is now attempted numerous times

It's been reported in issue #2 that PhantomJS sometimes doesn't stop.
Now, when stopping, we try up to a maximum of 10 times to stop PhantomJS
to hopefully resolve this issue.