We do want it to exit with 1. With your new except clause though, you're catching the exception so the code will exit normally as if nothing happened. You'd want to add a `raise` after your log statement so that the exception bubbles up to the top level and causes an exit 1.