Wait for boot in robust way

An idea and code from @himura