Fixed #224

* Removed exit where it was obsolete
* Replaced exit whenever possible with sth more senseful
* Added reasoning to the places where exit is required