enhancing demon to restart at a failed process