About My Samsung DVD Writer

I have P4 Computer with foxconn motherboard and ( 1 GB Ram, 2.6 Processor, 500 GB Hard disk Once I have LG DVD writer It's fine ,But Past 3 Days I had a DVD Writer (Samsung)It sometimes Get DVDs Sometime Not get any type of CDs ,
Once any CD or DVD Stuck in it I have to shutdown the computer and restart ,it tell me what to do with my DVD writer ?
