With issues of this type, I feel that a strictly technical, whip-up-a-script approach is not always the best. At my job I have to shut down my PC at the end of the day. (They have recently introduced a thing called "Night Watchman" which shuts down all the workstations on the network at 7 PM unless you tell the IT people you need to be excluded, and since our site building closes at that time, we will never need to do that). I have to make time to shut down all my running apps and shut down the PC. That is part of the time management I am expected to do. Maybe you need to speak to your boss, or whoever it is that "yells" at you, and mention that shutting down Quickbooks at the end of the day is part of your work, and that other things are making this difficult or impossible. Does your employer allow you to leave a PC on all night?