handle disconnect and out of card memory errors