You can use the buttons on the status bar to connect and disconnect devices.

Click the CD/DVD device button in the status bar.