Catch exceptions in main.py
Very important to return rather than exit()
Merge pull request #52 from hashdist/fix31v2

Catch exceptions in main.py