You could run a remote admin script that keeps checking the computer every 5 minutes or what ever time you set that checks who is logged on. If you detect the computer is down, the do what ever you're wanting to do when you find it down, or if you find the user is no longer logged on, do what you want to do remotely.