I figured it out thanks to the comments. I do have a switch controlling the track section. After disconnected all wiring to the track and the cattle platform, the problem still existed. Therefore the platform under the track with the shoes had to still be making contact. Since I had to retrofit the platform to fit the Atlas track I unknowingly had the platform making metal contact with the outside rail. The engine then completed the contact and the shoe acted as an uncoupler, I isolated the platform so there is no contact with the track without being switched on and the problem was solved. Thanks to everyone for quickly responding and helping with the resolution. Merry Christmas.
John