return the pid if we don't get an exception