Considering the alternative was court martial and spending the rest of his life in prison for violating every Starfleet order, I think everything worked out.Kirk was an Admiral who was Starfleet Chief of Operations. Within thirteen years he was a Captain again and once again answering to every flag officer in San Francisco. That was an interesting story.