def eject():
    global vcr
    if vcr:
        print('Auto-saving VCR contents')
        vcr.save()
Register this as an atexit function to save off vcr session when shell terminates
dataset/ETHPy150Open radssh/radssh/radssh/core_plugins/vcr.py/eject