Webservice crashes when child process exits

Hello,

When the phantomjs child process crashes, the webservice would not correctly restarts. I've just done a small fix for that.