The bond executed by such a person shall obligate them to maintain peace or exhibit good behavior, as applicable. In the case of good behavior, any commission, attempt to commit, or abetment of an offense punishable with imprisonment, regardless of where it occurs, shall constitute a breach of the bond.