Ensure child is connected before telling it to quit
Cleanup