Don't retry preparing queries infinitely on errors