Glad to hear you got it fixed Marc, its not a good feeling when your oil pressure guages are failing, all you wonder is if the engine is piling up.
You can take the wire off the senser and connect it to ground to by pass it. If there is an issue with the engine, the shutdown can help from doing further damage.