If that happens, you are either pricing your item too high, or you can laugh as undercutters make themselves all of 500cr. Another tip, make sure the recipe you're trying to sell is actually somewhat popular. Trying to sell a Radiant Silvermail recipe is a great way to get burned.
That said, selling recipes is a risky business, so if you can't eat a lost 2-3k listing fee now and then, you're in the wrong profession. Prices fluctuate rapidly, as does demand; I had a Hail Driver recipe that failed to move at 30k, and was snapped up at 33k a few days later when I reposted.