BehaviorWriter::~BehaviorWriter