badly handle shutdowns