def handle_expt(self):
        """Print a traceback and call `handle_close()` to close the pipe."""
        if self.__logger: self.__logger.exception("Unusual exception in pipe I/O")
        else: print_exc(file=stderr)
        self.handle_close()
Print a traceback and call `handle_close()` to close the pipe.
recipes/Python/576967_Asynchronous_pipe_communicatiusing/recipe-576967.py