e40 error means the door interlock has failed,.Sometimes the interlock failure can damage the pcb.Remove the interlock by removing the two screws,.Inspect the interlock for any signs of burning,also look closely at the wiring for burning.If all are ok,you will probably get away with just replacing the interlock.
paul, January 2012