From what I understand from reading the help file, the '0' is for eject and the '1' is for close.
You can try the following, though:
if (Errorlevel = 0)
Instead of the Drive,Eject line.
That'll check if the state of the drive changed, and if not, do the other command.