Log the exception for fix for #883