Catch an error of the function of 'get-state' in chash