If someone comes flying at you like that in MMA you got two choices:
1. Brawl with them (wrong)
2. Stop them from hitting you (right)

You achieve number 2 by either shooting in on him or stepping back, moving and letting him tire himself. I really do not recommend engaging in a match where you swing like a crazy person. If this match had gone on for more than those 10 seconds you both would have been shattered. Next time, take your time. Move, see what your opponent wants to do. If he wants to throw and throw - let him, keep the fuck out of that and then start attacking once he is tried out. If he is too strong and cutting you off - shoot in and take him down.