Pipeline solenoid emergency shut-off valve