I would think the hybrid system is smart enough to know what to do when the power switch is pushed while the engine is still running. After all Toyota has been making hybrids for twenty years, so I would imagine that the engineers figured that part out a long time ago.