Ontario rail crossing closed for weeks