Clean-up the main function

Removes an unnecessary failure branch at the top.