download: non-zero exit status on exception

Exit with non-zero status is an exception is raised in main() which is
not otherwise handled.