Freight train derailment fire forces closure