Log exception.