mi_fifo: close fifo stream in case of errors