First version of client-side error catcher