Merge pull request #13 from apache/ear-285

[MEAR-285] clean up exception handling