[core] restart in-place.
[core] fix fd leak with in-place restart