Add error catcher.