Exceptions are replaced by logging