Replaced exit to break. Fixes #8