core process graceful shutdown improved