Bug 922995 - Added a sleep in restartApplication to leave time for the socket message to complete. r=hskupin