service: close instance pipe fd on restart.