It has NOTHING to do with OS.
The reason is usually due to the pull-up resistor on the done pin or board shortage. Other possibility could be the noise on the board when the board is layed out poorly. Normally noise problem is NOT repeatable -- When you want it, it does not happen; when you do not want it, it appears -- very annoying.