better cleanup in list if git commit is aborted