Please also log the exception.