Close prepared statements in transaction map.