Catch errors in markup sandbox