Hoist `pid` to an outer scope so it's available in the rescue block.
Move running_check to Sicuro::Utils.