Should return the returncode to the `main` function rather than exiting here.