save current document before setting current document to nil
save current document before setting current document to nil

mlilback/rc2SwiftClient,mlilback/rc2SwiftClient,mlilback/rc2SwiftClient,mlilback/rc2SwiftClient,mlilback/rc2SwiftClient,mlilback/rc2SwiftClient