added exception handling on endWidget() call
Merge pull request #4 from tschlich/master

fixed an issue, when using widgets who raise exceptions