Add error handling to burn(), programatically add UI elements.

burn() now has error handling, but it needs to be abstracted out into
something a bit less ugly.