The line was reâ ' connected to the mainline at Wareham , Dorset along a stretch of the branch line . This had previously only remained open to freight traffic until 2005 . The line was reâ ' connected to the mainline at Wareham , Dorset along a stretch of the branch line that had previously only remained open to freight traffic until 2005 .