Better error catching for modifydomain.php