Fix orphan child processes. Closes #103
Use True instead of 1 for while check