Close Replay Buffer output file before calling API