Miccrowave turns on when I open door

I have a GE Profile Model JE1390, been very reliable over the years, however the past few weeks when we open the door the microwave turns on until we shut the door. Is this a switch that needs to be replaced> I really would like to fix this as it is nearly impossible to find a replacement microwave thast fits into to built in area where we can use the same trim kit.