Exit with an error code when breaking.

For #227