Trapping some errors

I got embed-go to crash so I wanted to stick in some diagnostics and exit gracefully.
Merge pull request #33 from xogeny/crash

Trapping some errors