[sr-dev] git:master:66bb1a55: mi_fifo: close fifo stream in case of errors