Add API/interface for closing txn lines