Catch MageClientError

Fixes #31

@stelcheck Please check that all the examples are running with your app.