'Closes the browser and shuts down the PhantomJS executable
that is started when starting the PhantomJS'

def quit(self):

    try:
        RemoteWebDriver.quit(self)
    except:
        pass
    finally:
        self.service.stop()
