'Runs the handler, flushes the streams, and ends the request.'

def run(self):

    try:
        (protocolStatus, appStatus) = self.server.handler(self)
    except:
        traceback.print_exc(file=self.stderr)
        self.stderr.flush()
        if (not self.stdout.dataWritten):
            self.server.error(self)
        (protocolStatus, appStatus) = (FCGI_REQUEST_COMPLETE, 0)
    if __debug__:
        _debug(1, ('protocolStatus    =    %d,    appStatus    =    %d' % (protocolStatus, appStatus)))
    self._flush()
    self._end(appStatus, protocolStatus)
