Fix memory leak
Avoid zombie process