Plug off the power. Try some WD40 on the door mechanism, on machine. Open and close a few times. Perhaps the wires were loose on the old switch, or the mechanism was jammed bit. You can refit the old switch........ it should work out.
We may have found other answers which could help you.