Should you maybe make `close` async and wait for the childProcess to actually exit?