close now blocks while writing