Do not use unnamed function expressions
Add non-throw error logging