fixed issue where unregistered commands leaked txn handles