Change child_process to manager
Fix memory leak