Made the worker aware of other types of errors

Fixes #290 

@SirCmpwn - ready to merge