"At least 27 oil trains have been involved in major derailments, fires or oil spills in the United States and Canada in the past decade, according to an AP analysis of accident records."

 It is non-intuitive for me, but apparently pipelines are not necessarily safer.  

There have been over 200 oil-pipeline accidents in the United States since the year 2000, the causes of which ranged from natural disasters to negligence.  

https://en.wikipedia.org/wiki/List_of_pipeline_accidents_in_the_United_States_in_the_21st_century