Unable to refresh CD from VC++

Hi, I’m using NERO Api from VC++. I’m trying to write files from time to time and compare them against original files. I’m using NeroEject to load CD after each burn operation, but sometimes I’m unable to read written files. In some cases after burn operation is finished, after CD tray is closed, Windows doesn’t see my CD-R device anymore, untill I quit application.

Comparation is done opening source/target file and comparing byte by byte.
Auto Insert
Any help is appriciated.