thread.sleep as workaround for one cause of ui-hangs (#296)