close con by transaction