finalize I/O for Stg: from Stg, to Stg, to Dot.