LONGUEUIL, Que. — People in a part of Longueuil, Que., were being asked to stay indoors with their doors and windows closed on Thursday after a train derailed in the morning, spilling an unknown quantity of hydrogen peroxide.