added catch

based on example in koop-agol.  resolves #5