def METHOD_NAME(self, stream, ident, msg):
    """Handler for comm_close messages"""
    content = msg['content']
    comm_id = content['comm_id']
    comm = self.get_comm(comm_id)
    if comm is None:
        return
    del self.comms[comm_id]
    try:
        comm.handle_close(msg)
    except Exception:
        self.log.error('Exception in comm_close for %s', comm_id, exc_info=True)