It has been deemed a "safety risk" and will be shut under a stopping up order, says Network Rail.