added blocking behavior to remove and save methods in ::Document