Fixed issue with errors not being reported.