Fix memory leak - Destroy handle without going to idle after recording