Fix missing set of sync_close.