Implemented share errors.

Share.valid will be now automatically set based on if share contains an error.
Fixed PoolTests.cs.