log full exception from script execution
Merge pull request #636 from adamralph/error-logging

log full exception from script execution