in gym_recording/wrappers/trace_recording.py [0:0]
def close(self):
"""
Flush any buffered data to disk and close. It should get called automatically at program exit time, but
you can free up memory by calling it explicitly when you're done
"""
if self.recording is not None:
self.recording.close()