set this->fifo = NULL when closing