Minor update to the pynb command so the process does not die
on terminal removal.