Nothing you really could have done here, except maybe bet more preflop. The runner runner flushes are hard to take and they don't happen to often I would be generally scared about it. You had all your money in when you had the best hand, so, good play.