pid_from_uri(nil) raises exception, so rescue and return nil