Sam Welsford claimed a first professional win on stage 5 of the Tour of Turkey although the day was marred by a huge crash before the finish.