finalise Writer