catch heroku and cloudflare ssl
add exception handler. fixes #4. fixes #5. fixes #7.