Reuse ElementTree in handler
Catch exceptions in handlers
Add GPL-2+ license
Add documentation comment