My disk drive keeps ejecting.

It will do it randomly and will never close most the time. Just keeps opening! Should I try to reinstall the drive?