Log exception for skipped queries