Avoid possible double close when saving
Avoid possible double close when saving

We want close(2) to happen before rename(2).

At some point the save implementation will have to be overhauled.

trengrj/vis,cpehle/vis,clehner/vis,cpehle/vis,8l/vis,trengrj/vis,twinshadow/vis,rychipman/vis,clehner/vis,twinshadow/vis,rychipman/vis,8l/vis