Added logic to find the end of the document, dirty but works (look for EE EE EE), then go back until the bson parser is able to parse