Use domain to run sandboxed code in

Prevents server to crash due to errors in UI code.