Dungannon Swifts sit second in the Sports Direct Premiership standings thanks to survival against bottom-of-the-table Loughgall’s late fightback bid.