Perform all the writes in close
Perform all the writes in close

This fixes the bug reported in issue #64.

PSPDFKit-labs/xctool,bhamiltoncx/xctool,soundcloud/xctool,1yvT0s/xctool,yaoxiaoyong/xctool,modulexcite/xctool,leopardpan/xctool,kamoljan/xctool,kernandreas/xctool,lpios/xctool,ACChe/xctool,LegNeato/xctool,agreco/xctool,adamjernst/xctool,SuPair/xctool,FiftyThree/xctool,LegNeato/xctool,blighli/xctool,kcoons/xctool,n054/xctool,ACChe/xctool,lpios/xctool,theiren46/xctool,yaoxiaoyong/xctool,Monits/xctool,Monits/xctool,facebook/xctool,adamjernst/xctool,ekingo/xctool,trello/xctool,kernandreas/xctool,blighli/xctool,bhamiltoncx/xctool,ACChe/xctool,yaoxiaoyong/xctool,FiftyThree/xctool,githubdelegate/xctool,SuPair/xctool,ekingo/xctool,PSPDFKit-labs/xctool,ACChe/xctool,agreco/xctool,jspahrsummers/xctool,AutoScout24/xctool,duk42111/xctool,bgertzfield/xctool,dvor/xctool,jspahrsummers/xctool,bhamiltoncx/xctool,n054/xctool,trello/xctool,facebook/xctool,LegNeato/xctool,FiftyThree/xctool,githubdelegate/xctool,trello/xctool,Richardlihui/xctool,kamoljan/xctool,bgertzfield/xctool,1yvT0s/xctool,1yvT0s/xctool,ACChe/xctool,trello/xctool,PSPDFKit-labs/xctool,SuPair/xctool,agreco/xctool,leopardpan/xctool,githubdelegate/xctool,lqi/xctool,facebook/xctool,kernandreas/xctool,leopardpan/xctool,bhamiltoncx/xctool,bgertzfield/xctool,soundcloud/xctool,LegNeato/xctool,ekingo/xctool,theiren46/xctool,kernandreas/xctool,kamoljan/xctool,bgertzfield/xctool,Richardlihui/xctool,SuPair/xctool,jspahrsummers/xctool,githubdelegate/xctool,bgertzfield/xctool,lqi/xctool,n054/xctool,kamoljan/xctool,lpios/xctool,n054/xctool,n054/xctool,facebook/xctool,lqi/xctool,facebook/xctool,duk42111/xctool,jspahrsummers/xctool,agreco/xctool,Richardlihui/xctool,modulexcite/xctool,Monits/xctool,leopardpan/xctool,PSPDFKit-labs/xctool,blighli/xctool,adamjernst/xctool,PSPDFKit-labs/xctool,dvor/xctool,lpios/xctool,bhamiltoncx/xctool,Richardlihui/xctool,facebook/xctool,dvor/xctool,bhamiltoncx/xctool,Monits/xctool,soundcloud/xctool,AutoScout24/xctool,AutoScout24/xctool,modulexcite/xctool,kcoons/xctool,dvor/xctool,n054/xctool,adamjernst/xctool,ACChe/xctool,duk42111/xctool,lpios/xctool,theiren46/xctool,ekingo/xctool,kcoons/xctool,FiftyThree/xctool,theiren46/xctool,blighli/xctool,bgertzfield/xctool,soundcloud/xctool,1yvT0s/xctool,AutoScout24/xctool,modulexcite/xctool,lpios/xctool,duk42111/xctool,soundcloud/xctool,soundcloud/xctool,yaoxiaoyong/xctool