Use `exit` instead of `break`

fix #223