[Parser] Fixed exception handling for -s -e