If your dive computer stops mid-dive, it is wise to end your dive. While this may not be something you want to do, it is important to be safer rather than sorry.  If your dive computer retains the data, Replacing the batteries on your computer, you will be able to go right back into the water and continue diving.