Shouldn't we wait for b2g to be not running, and catch the timeout?