Fix Command#end ascending to higher-depth parent contexts