Add more verbose logging in case of error.