writer: fix Close godoc