sleep on errors

Change-Id: If033d8145c384751128c5c04296c9e1dffdf7b36