Fix incorrect uses of traceback functions
Fix a doubly begun transaction