Added windows sevice auto-restart support.