log the error while trying to access the device then, here you add a
error while trying to access the file but do nothing in case the device
can't be opened due to permission error or any such issue which
was being raised earlier.