Properly handle all errors.