Saying "made a bit weird noise" isn't exactly definitive, what sort of noise, a crackling noise, a grinding noise, a beeping noise?
It sounds like your PC was overheating if it suddenly turned itself off, the noise, if any could be the fans spinning at higher RPMs to try and cool the overheating system.