if open(O_RDWR) fails it actually closes the device now.