Now before you call this "unfair", remember that Facebook's IPO went downwards rather quickly, and is considered to be a failure. Banks definitely lost money by participating in Facebook's IPO, which IPOed at $38 and then fell to $20 for months.
Its too early to call Twitter's IPO a success btw. Lets wait for a week, and see where the stock ends up. IPOs are extremely volatile.
Having a giant pop like this means you've left a lot of money on the table. If people were willing to pay $45 for Twitter shares and you sold them for $26, then you got ripped off.
The ideal IPO price is one that doesn't rise or sink, meaning you nailed it.
Twitter has gotten $1.8 Billion out of this deal already. Once Twitter sells stock off to the banks, the money no longer reaches them.
That said, if Twitter wants to sell additional stock at a later date on the public market, they'd prefer if the stock price were high.