Implements FIFO RAII wrappers