fix bug when dealloc is called without calling StartRecord once