Also call g_spawn_close_pid() when handling child processes