Trapping some errors

I got embed-go to crash so I wanted to stick in some diagnostics and exit gracefully.