 You don't walk away too soon. You ask God to make it clear when his purpose has been finished and whatever that thing is that you're dealing with and you are trusting him and you're not walking away before God has completed his task. And in your perseverance, godliness.