Fix setup.py
Fix exception handling in startup
Version 0.3.1 (bugfix release)