Updated try/catch loop to log when a class is not found.