updated shutdown script