now it's possible to continue inserting documents if there was an exception in the middle of file