That he dropped them in it in both cases is correct. In Egypt, he abandoned them to get his snout in the political trough in Paris while there was still a command post that he SHOULD have been filling. In 1812 he was head of state (maybe one could say he should not have been there at all) but the army was gone and he had lots to do in Paris. Handing over command was logical in those circumstances. At least he looked his successor in the eye before he left in 1812, which is an improvement on his VERY questionable conduct of 1799.