We do not have to check for an invalid environment, this is done by argparse. Additionally different exceptions allows to return different exit codes (see main.py)