I agree that there shouldn't be a loophole, but combining spells that have both immediate as well as end of torn with 5e's cutesy voluntary movement only AoO minimization sets up a rules lawyering mincing of words discussion that I can completely circumvent by moving any end of turn effects to immediately or start of turn as appropriate.