TMP: Few error catching hooks.

I cannot find some bug and cannot reproduce it on localhost. Trying catch errors on travis...