Rewrite saveDocument using async, remove document from disk