finished small shutdown script