Try to catch errors.