Fixed shutdown script (timer)