Add debug output when get_work() is blocked for an extended period and add grace time to the device's last valid work to prevent false positives for device failure.