close document parser at the end in order to clear the language profiles(if we open tow time the same profiles an exception is thrown)