You can write the court a letter, though it's best that you appear so the Judge can do a proper allocation to make sure that your withdrawal is not the product of duress or coercion. Schedule a consult with a Family Law attorney in your area for more info.