How to schedule a task to run when shutting down windows