Add script to build sample directory with tests
Emit error logs on import failures
Refactor error capturing (#134)
Improve exception reporting