Never said OP should stick around long-term. But leave on his own terms, after securing employment elsewhere, or with some other plan. As opposed to laying down an ultimatum, in which case he could be shown the door in a matter of days.
Better yet, if he wants to express loyalty to his team, work his personal network on the side to get each of his team members hired at a more appreciative company, and be the _last_ one to jump ship, only after all the direct reports have safely been "rescued" via better employment opportunities.