This shouldn’t happen but if it does right click on the volume icon and select Eject. Alternatively drag the volume icon to the eject icon in your dock.