remove writer.close in KVMessage