def _handle_stranded_msgs(self, eid, uuid):
        
        outstanding = self._outstanding_dict[uuid]
        
        for msg_id in list(outstanding):
            if msg_id in self.results:
                # we already 
                continue
            try:
                raise error.EngineError("Engine %r died while running task %r"%(eid, msg_id))
            except:
                content = error.wrap_exception()
            # build a fake message:
            parent = {}
            header = {}
            parent['msg_id'] = msg_id
            header['engine'] = uuid
            header['date'] = datetime.now()
            msg = dict(parent_header=parent, header=header, content=content)
            self._handle_apply_reply(msg)
Handle messages known to be on an engine when the engine unregisters.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client._handle_stranded_msgs