closes #421, add sleeps after getLastError calls
Merge branch 'bugs/421'