do not exit heartbeat loop, unless writer.Stop() was called