Arduino errors catching