properly catching InterruptedException
properly catching InterruptedException