Update shutdown to work on Windows 7