init error catcher