Revert "Hotfix of main.cpp handling bad input."
Revert because of earlier fail when committing

This reverts commit 4d0787d05b1f117503e12b2b5bf8c2103a4ddd70.