stop parsing if we get the done signal