Try catch added, sleeps removed

To fix a bug that occured when the card is removed during the reading
process, we've added a try catch statement to catch the exception and
make the program continue.