Frigidaire Model stays in wash cycle

My dishwasher stays in the wash cycle and will not complete the cycle. What do I need to do to address it other then replace the unit?