restart itunes while its still connected

I used to have that problem but that usually does the trick if not then restart the computer while its still connected.

Try that and see if anything works.