make sure to close writer