Depends... Sometimes it's know which chemicals are shipped on a railroad, so sometimes it's worth checking that out.
A respirator is a last resort kind of protection. When a gas leak occurs, make sure you are above wind and evacuate above wind. (do note, that gas leaking under pressure can travel against the wind for a certain distance)
_________________________