Yes, you can terminate the mediation process at any time, but you will essentially be starting the process over.
In most states, you will not be able to use the attorneys or any tentative agreements in the litigation proceedings.
Article sections
in Litigation