PhantomJS stopping is now attempted a few 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.
Merge pull request #4 from site5/fix/Shutdown-Issue-2

PhantomJS stopping is now attempted numerous times