Failing the build after a certain number of waits