Add wait loop for the appengine socket.