Checking subprocess run errors