watchdog: core: propagate ping error code to the user space