Bug 1033402 - waitForSocket() before connecting to marionette.

Looking at it further, there is indeed something that doesn't look right