Fixed exception issues
Merge pull request #25 from xenog/stratum-simple

Fixed exception issues