When the `:end_document` state is reached, I think it just needs to advance the state machine to `:start_document`, and the parser will handle the next object on the stream.