I suggest not flying into costa unless you actually plan on spending some time there.
You'll waste a complete day getting up to Nica and another day getting back to Costa to fly out.
I'm really surprised that its cheaper to fly into liberia than managua. Maybe try flying out of somewhere different in the US? I had decent prices to managua out of Newark NJ