Electromagnet Relay Help

You also do not have a back EMF diode across your electro magnet, that would cause the problems you are seeing.