eal: fix memory leak on control thread failure