call sleep2 that catches other signals