def METHOD_NAME(self, dispatcher):
    err = dispatcher.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
    if err != 0:
        self.log.exception("Unrecoverable error on listen socket")
        self.handle_close(dispatcher)
    else:
        self.log.exception("Unhandled exception in acceptor")