Fixing error reporting.. it was masking exceptions.