The bond to be executed by any such person shall bind keep him to keep the peace or to be of good behaviour, as the case may be and in the latter case the commission or attempt to commit, or the abetment of any offence punishable with imprisonment, whenever it may be commit, is a breach of the bond.