Fix crash on close casued by attempting to use free() on an AppTimer.