Forum:Stardust Ending phase rule

I'm controlling my opponent's stardust dragon. So is my end phase, I returned his stardust to his side of the field, and then he activates Mystical Space Typhoon to destroy one of my traps, can he do it? or returning stardust is the very last thing the happens in this turn? I control the statdust due to brain control.