Use "exit" instead of "return" in the main function.

Improve readability, as well avoiding cppcheck's complain.