checking for running instance, reporting rng exit code on fail