check the return value of error handling function

Well... it is true that the return value is not checked also at other places...

but we had no reports about this module so far and I actually thought it is already dropped. 

So I think when we can close the only bug that appeared in years, than it's better than rewriting the whole code...