Probably better to keep her in custody since she is relevant to foreign policy options. The new government could use negotiating for her treatment as a front to justify any unpopular concessions and Japan keeping her hostage should make government-in-exile hijinks less likely.