Log message when returning 404 after exception