We all stumble in many ways. Anyone who is never at fault in what they say is perfect, able to keep their whole body in check. ~ James 3:2
There isn't a person alive who can qualify as being "perfect". So, don't be so hard on yourself when mistakes happen.
While we should always strive to be more like Christ every day - we shouldn't allow a mistake to derail us.
Confess your mistake outloud to God - right now. Find a brother you can talk to about this mistake. Then, pick up your stuff and move on. God needs his men in the fight.