updated subprocess usage, own exit codes and lumiCalc using this feature