The last dialogue option will always give you a chance to run. You can turn around immediately, and usually walk past the guard without another encounter.