Implemented stratum errors.
Added processing of shares for errors.