catch all errors in app.py
Merge pull request #555 from rmehta/develop

minor cleanups to desk