'Stops the server.'

def stop(self):

    self.stop_serving = True
    try:
        urllib_request.URLopener().open(('http://%s:%d' % (self.host, self.port)))
    except IOError:
        pass
    LOGGER.info('Shutting    down    the    webserver')
    self.thread.join()
