#643 ensure script compilation/execution exceptions are logged
Merge pull request #644 from adamralph/643

#643 ensure script compilation/execution exceptions are logged