NORWALK -  Norwalk police say it was a close call for kids Wednesday when their school bus broke down on Metro-North train tracks.

The bus was carrying about 40 kids from Silvermine Elementary School when the driver attempted to cross the Danbury Metro-North branch on Broad Street. Police say the bus driver stopped and looked both ways at the tracks, but when he tried to cross, the bus broke down.

Police credit the driver with getting all the kids off the bus when the crossing gates started to close.

Witnesses saw what was happening and rushed to help. The train conductor hit the brakes and stopped just short of the empty bus.

Police say two children suffered minor bumps and bruises during the ordeal. They say they were able to get the stalled bus off the tracks within a few minutes.

Backup buses arrived at the scene to take students home.