Feed watchdog during wait time
Fixed crash due to sudo and improved logs