SD initializing get failed on running it second time

After uploading cardinfo code from example on uno

  1. SD card fails to initialize first time
    then

  2. I remove Vcc & plug it again,close the serial moniter window & on reopening it, SD card gets initialized ,

then
3) After closing serial moniter window & opening it again , SD card again fails to initialize
I have to repeat step 2 to make it work again

In the pic is the sd card sheild I use

I replaced CS pin as 10

Capture.JPG