'Clean up on exit'

@staticmethod
def cleanup(files):

    for sfile in files:
        if os.path.exists(sfile):
            if os.path.isdir(sfile):
                shutil.rmtree(sfile)
            elif os.path.isfile(sfile):
                os.remove(sfile)
