catch script errors

Errors are no longer runtimeexceptions, but now regular exceptions