add a except handler