If you can open the lid while the machine is running, the lid switch is bad a should be replaced.
open