add status write to aof for replication and persistence.