sleep added to avoid segFault

an empty catch clause is not very fancy in our code. please handle the exception if it is caught and think about side-effects this code can have.