I have a real old CD-RW drive that has trouble reading some discs. When it does, my PC freezes and I'm forced to keep pushing the Eject button until it comes out.
So if your drive is old, think about upgrading.
If your system restarts, it's probably a system failure. Run a boot-time chkdsk by opening a comand prompt, typing "chkdsk /F", and pressing Enter.
If you still have probs after this, your PSU is probably not good enough. Make sure you have a model from a major brand and that it can supply sufficient power to your system.