Log errors instead of throwing  error and breaking app