Add dataownercode isolation and also add custom error handlers (that don't seem to work...)

Needs a quick functional runthrough testwise