updated shutdown