Catch uncaught exceptions and better ownership parsing.
Merge pull request #15 from jk0/master

Catch uncaught exceptions and better ownership parsing.