close stop chan first so Shutdown can proceed