You did the right thing. At that time it got a bit sideways. So power cut, close out, profit 20 pips. 🙂 The only other thing you could have done differently would been to have put a stop in.
You would have ended up with 15 pips or less had you used wider stop, and possibly nothing at all as it could have breeched your stop if set at your entry point, then took off leaving you with nothing.
The problem I suffered was worse. At the height of that move my charts lagged by between 15 and 22 pips. So guess who starting reversing too early!