I want to say a bit of both, but it does occur to me that if Nicholas had tried to quit the war at any time before the February Revolution, there may well have been a coup against him to keep Russia in the war. Still would have been worth a try considering the state the country was in.